package com.fowo.api.model.patrol.manage;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 巡场管理 导入导出辅助模型 */
@Getter
@Setter
public class PatrolManageExcelPo {

  @Size(max = 50, message = "供应商编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "供应商编号")
  private String supplierIdSupplierExistingFields;

  @ExcelIgnore
  @ExcelProperty(value = "供应商编号")
  private Long supplierId;

  @Size(max = 50, message = "巡场人员长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "巡场人员")
  private String patrolPersonnel;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "巡场时间")
  private java.util.Date patrolTime;

  @ExcelProperty(value = "巡场拍照", converter = ImageConvert.class)
  private List<SysFile> patrolPhotography;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remarks;

  @ExcelProperty(value = "良品率")
  private java.math.BigDecimal goodQuantity;

  @ExcelProperty(value = "进度")
  private java.math.BigDecimal schedule;

  @ExcelProperty(value = "订单逾期次数")
  private Integer orderOverdueNumber;

  @ExcelProperty(value = "订单逾期天数")
  private Integer orderOverdueDays;
}
